package com.liangsui.mss.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liangsui.mss.domain.Drug;
import com.liangsui.mss.domain.DrugStat;
import com.liangsui.mss.dto.DrugQueryDto;
import com.liangsui.mss.mapper.DrugMapper;
import com.liangsui.mss.service.DrugService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author zhang
* @description 针对表【statistics_drug】的数据库操作Service实现
* @createDate 2022-12-07 14:51:46
*/
@DubboService(timeout = 5000)
public class DrugServiceImpl implements DrugService{
    @Autowired
    private DrugMapper drugMapper;

    @Override
    public List<Drug> queryDrug(DrugQueryDto drugQueryDto) {
        return this.drugMapper.queryDrug(drugQueryDto);
    }

    @Override
    public List<DrugStat> queryDrugStat(DrugQueryDto drugQueryDto) {
        return this.drugMapper.queryDrugStat(drugQueryDto);
    }
}




